Current Location: Home> Function Categories> tanh

tanh

Hyperbolic tangent
Name:tanh
Category:math
Programming Language:php
One-line Description:Hyperbolic tangent.

Definition and usage

tanh() function returns a hyperbolic tangent.

Example

In this example, we will return a hyperbolic tangent for different numbers:

 <?php
echo ( tanh ( M_PI_4 ) ) ;
echo ( tanh ( 0.50 ) ) ;
echo ( tanh ( - 0.50 ) ) ;
echo ( tanh ( 5 ) ) ;
echo ( tanh ( 10 ) ) ;
echo ( tanh ( - 5 ) ) ;
echo ( tanh ( - 10 ) )
?>

Try it yourself

grammar

 tanh ( x )
parameter describe
x Required. A number.

illustrate

Returns the hyperbolic tangent value of x , defined as sinh(arg)/cosh(arg).

Similar Functions
  • Perform floating point division under IEEE 754 semantics fdiv

    fdiv

    Performfloatingpoint
  • Exponential expressions pow

    pow

    Exponentialexpressio
  • Find the maximum value max

    max

    Findthemaximumvalue
  • Hyperbolic sine sinh

    sinh

    Hyperbolicsine
  • Ancient sine asin

    asin

    Ancientsine
  • Sow a better random number generator seed mt_srand

    mt_srand

    Sowabetterrandomnumb
  • Get the pi value pi

    pi

    Getthepivalue
  • Sow the random number generator seeds srand

    srand

    Sowtherandomnumberge
Popular Articles